<!-- $Id:aritlce author liuricheng 2014-08-01 -->
<table width="90%" id="article-table"  align="center">
	<tbody>
		<tr>
			<td colspan="3">
				<img src="__PUBLIC__/image/admin/icon_search.gif" width="26" height="22" border="0" alt="SEARCH">
				文章标题 <input type="text" name="article_title">
				<input type="button" value=" 搜索 " onclick="searchArticle()" >
			</td>
		</tr>
		<tr>
			<th>可选文章</th>
			<th>操作</th>
			<th>跟该商品关联的文章</th>
		</tr>
		<tr>
			<td width="45%">
				<select name="source_select3" size="20" style="width:100%" multiple="" ondblclick="sz3.addItem(false, 'add_goods_article', goodsId, this.form.elements['price2'].value)">
				</select>
			</td>
			<td align="center">
				<p><input type="button" value=">>" onclick="sz3.addItem(true, 'add_goods_article', goodsId, this.form.elements['price2'].value)" ></p>
				<p><input type="button" value=">" onclick="sz3.addItem(false, 'add_goods_article', goodsId, this.form.elements['price2'].value)" ></p>
				<p><input type="button" value="<" onclick="sz3.dropItem(false, 'drop_goods_article', goodsId, elements['is_single'][0].checked)" ></p>
				<p><input type="button" value="<<" onclick="sz3.dropItem(true, 'drop_goods_article', goodsId, elements['is_single'][0].checked)" ></p>
			</td>
			<td width="45%">
				<select name="target_select3" size="20" style="width:100%" multiple="" ondblclick="sz3.dropItem(false, 'drop_goods_article', goodsId, elements['is_single'][0].checked)">
					<volist name="goods_article_list" id="goods_article">
						<option value="{$goods_article.article_id}">{$goods_article.title}</option>
					</volist>
				</select>
			</td>
		</tr>
	</tbody>
</table>
<script>
	/**
	 * 搜索文章 
	 */
	function searchArticle(){
		var filters = new Object;
		filters.title = Utils.trim(elements['article_title'].value);
		sz3.loadOptions('get_article_list', filters);
	}

</script>